import { createSvgIconsPlugin } from 'vite-plugin-svg-icons'
const path = require('path')
//svg 自动导入
export default function _createSvgIconsPlugin() {
  return createSvgIconsPlugin({
    // Specify the icon folder to be cached
    iconDirs: [
      path.resolve(process.cwd(), 'src/assets/svg'),
      path.resolve(process.cwd(), 'src/assets/colourSvg')
    ],
    // Specify symbolId format
    symbolId: 'icon-[dir]-[name]'
  })
}
